<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>企业人力资源系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <!--引入本地的css样式-->
    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../static/css/admin.css" media="all">

    <script>
        /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
    </script>
    <style>
        a:visited {
            background-color: rgb(148, 206, 242) !important;
        }

        a:hover {
            color: #00FFFF !important;
        }

        a:active {
            background-color: rgb(121, 135, 202) !important;
        }

        a:link {
            background-color: #3E6FB1 !important;
        }

        cite {
            color: rgb(252, 252, 252);
            font-weight: bolder;
        }

        dd :hover {
            color: #00FFFF !important;
        }

        button {
            background: #3E6FB1;
        }
    </style>
</head>
<body class="layui-layout-body">


<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header" style="background-color: #3E6FB1; height: 55px;!important;">
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩"
                       style="background: #3E6FB1 !important;">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
            </ul>

            <ul class="layui-nav layui-layout-right" style="margin-right: 500px">
                <!-- 时间显示-->
                <li class="layui-nav-item"><span style="font-size: 18px;color: white!important;" id="currentTime">2024年1月1日 星期一 08:09:06</span>
                </li>
                <li class="layui-nav-item layui-hide-xs"></li>
                <li class="layui-nav-item layui-hide-xs"></li>
                <li class="layui-nav-item layui-hide-xs"></li>
                <li class="layui-nav-item layui-hide-xs message"></li>
                <li class="layui-nav-item user">
                    <dl class="layui-nav-child">
                        <dd><a user-menu-url="view/system/person.html" user-menu-id="5555" user-menu-title="基本资料"></a>
                        </dd>
                        <dd>注销登录</dd>
                    </dl>
                </li>
                <!-- 主 题 配 置 -->
                <li class="layui-nav-item setting"></li>
            </ul>
            <!--右边区域-->
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" style="background: #3E6FB1 !important;">
                        <cite style="color: white;font-weight: bold;" id="login_user"></cite>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a lay-href="set/user/info.html">基本资料</a></dd>
                        <dd><a lay-href="set/user/password.html">修改密码</a></dd>
                        <hr>
                        <dd layadmin-event="logout" id="logout" style="text-align: center;"><a>退出</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
                    <a href="javascript:;" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
                </li>
            </ul>
        </div>

        <!-- 侧边菜单 -->
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo" lay-href="home/console.html"
                     style="background-color: rgb(11,80,124) !important;height: 53px">
                    <span style="font-weight: bolder;">企业人力资源系统</span>
                </div>
                <!--显示下拉菜单-->
                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu"
                    lay-filter="layadmin-system-side-menu" style="background: #72b7ec!important;">
                    <li data-name="home" class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;" lay-tips="我的工作平台" lay-direction="2">
                            <i class="layui-icon layui-icon-home" style="vertical-align: middle!important;"></i>
                            <cite>首页</cite>
                        </a>
                        <dl class="layui-nav-child" style="background: #72b7ec!important;">
                            <dd data-name="console" class="layui-this" style="background: #72b7ec!important;">
                                <a lay-href="work_platform/console.html" style="background: #72b7ec!important;">时间线</a>
                            </dd>
                        </dl>
                    </li>
                    <!--系统设置-->
                    <li class="layui-nav-item">
                        <!--系统设置标题-->
                        <a href="javascript:;" lay-tips="系统设置" lay-direction="2">
                            <i class="layui-icon layui-icon-set"></i>
                            <cite>系统设置</cite>
                        </a>
                        <!--点击后展开菜单目录-->
                        <dl class="layui-nav-child">
                            <dd>
                                <a lay-href="system/organ.html">组织结构设置</a>
                            </dd>
                            <dd>
                                <a lay-href="system/users.html">用户管理</a>
                            </dd>
                            <dd>
                                <a lay-href="system/position.html">职位设置</a>
                            </dd>
                            <dd>
                                <a lay-href="system/professional.html">职称设置</a>
                            </dd>
                            <dd>
                                <a lay-href="system/question.html">题库管理设置</a>
                            </dd>
                        </dl>
                    </li>
                    <!--薪酬管理-->
                    <li class="layui-nav-item">
                        <!--系统设置标题-->
                        <a href="javascript:;" lay-tips="系统设置" lay-direction="2">
                            <i class="layui-icon layui-icon-rmb"></i>
                            <cite>薪酬管理</cite>
                        </a>
                        <!--点击后展开菜单目录-->
                        <dl class="layui-nav-child">
                            <dd>
                                <a lay-href="pay/standard.html">薪酬标准管理</a>
                            </dd>
                            <dd>
                                <a lay-href="pay/provide/provide.html">薪酬发放管理</a>
                            </dd>
                        </dl>
                    </li>
                    <!--人事管理-->
                    <li class="layui-nav-item">
                        <!--系统设置标题-->
                        <a href="javascript:;" lay-tips="人事管理" lay-direction="2">
                            <i class="layui-icon layui-icon-username"></i>
                            <cite>人事管理</cite>
                        </a>
                        <!--点击后展开菜单目录-->
                        <dl class="layui-nav-child">
                            <dd>
                                <a lay-href="personnel/file.html">人事档案管理</a>
                            </dd>
                        </dl>
                    </li>
                    <!--招聘管理-->
                    <li class="layui-nav-item">
                        <!--系统设置标题-->
                        <a href="javascript:;" lay-tips="招聘管理" lay-direction="2">
                            <i class="layui-icon layui-icon-star-fill"></i>
                            <cite>招聘管理</cite>
                        </a>
                        <!--点击后展开菜单目录-->
                        <dl class="layui-nav-child">
                            <dd>
                                <a lay-href="recruit/job_post/job_post.html">职位发布管理</a>
                            </dd>
                            <dd>
                                <a lay-href="recruit/resume/resumeList.html">简历管理</a>
                            </dd>
                            <dd>
                                <a lay-href="recruit/interview/interviewList.html">面试管理</a>
                            </dd>
                            <dd>
                                <a lay-href="recruit/hire/hireList.html">录用管理</a>
                            </dd>
                        </dl>
                    </li>
                    <!--培训管理-->
                    <li class="layui-nav-item">
                        <!--系统设置标题-->
                        <a href="javascript:;" lay-tips="培训管理" lay-direction="2">
                            <i class="layui-icon layui-icon-tabs"></i>
                            <cite>培训管理</cite>
                        </a>
                        <!--点击后展开菜单目录-->
                        <dl class="layui-nav-child">
                            <dd>
                                <a lay-href="training/trainingPrograms.html">培训计划</a>
                            </dd>
                            <dd>
                                <a lay-href="training/trainingReview.html">培训复核</a>
                            </dd>
                            <dd>
                                <a lay-href="training/assessmentAndFeedback.html">培训考核与反馈</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="work_platform/console.html" lay-attr="work_platform/console.html" class="layui-this"><i
                            class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>
        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe src="work_platform/console.html" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>

<script type="text/javascript" src="../static/js/jquery-3.6.0.min.js"></script>
<!--引入本地layui.js-->
<script src="../static/layui/layui.js"></script>
<!--js-->
<script type="text/javascript">
    layui.config({
        base: '../static/layui/layuiadmin/' //静态资源所在路径js
    }).extend({
        index: 'lib/index' //主入口模块
    }).use('index');
</script>
<script type="text/javascript">
    //从sessionStorage中取出来把数据从登录页写入到首页
    var obj = sessionStorage.getItem("user");
    if (obj != null) {
        //获取user对象
        var user = JSON.parse(obj);
        //获取标签对象，把数据写入标签体中间
        document.getElementById("login_user").innerText = user.login_name;
    } else {
        //没有获取user=没登录成功=重新登录
        window.location.href = "../login.html";
    }
    //jq书写
    $(function () {
        $("#logout").click(function () {
            //从sessionStorage中移除user
            sessionStorage.removeItem("user");
            window.location.href = "../login.html";
        })
    })
</script>
<!--动态时间-->
<script type="text/javascript">
    let weeks = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']

    function getCurrTime() {
        let date = new Date();
        let year = date.getFullYear();
        let month = date.getMonth() + 1;
        let day = date.getDate();
        let week = date.getDay();
        let hour = date.getHours();
        let minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
        let second = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
        $('#currentTime').text(`${year}年${month}月${day}日 ${weeks[week]} ${hour}:${minute}:${second}`);
    }

    setInterval(getCurrTime, 1000)
</script>
</body>
</html>


